
#include "DBInit.h"

#include "CreatureManager.h"



fint32 GUEST_GUID = 10000000;

fvoid		DB_Select_Roles( dbResult* result )
{
	dbIRecordset* pRes =  result->pResult;
	dbIRecord* tempRecord = F_NULL;

	fint32 RecordCount = pRes->CountRecord();

	for ( fint32 i = 0 ; i < RecordCount ; ++i )
	{
		pRes->Move( i );
		tempRecord = pRes->GetRecord();

// 		UserRoleInfo info;

// 		fint32 guid = tempRecord->Field( (fuint32)0 );
// 		info.account = (fbyte*)tempRecord->Field( 1 );
// 		info.name = (fbyte*)tempRecord->Field( 2 );
// 		info.gender = tempRecord->Field( 4 );
// 		info.type = tempRecord->Field( 5 );
// 
// 		gCreatureManager->SetUserRoleInfo( guid , info );
	}
}


fvoid		DB_Quit( dbResult* result )
{
	//DB_RELEASE = F_TRUE;
}
